package com.vitaf.cash.app.weight.font;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.vitaf.cash.lib.shapeview.view.VitafTextView;

/**
 * GombeCredit
 *
 * @Author wwdeng
 * @CreateTime: 2024/12/26 21:34
 * @Annotation：
 */
public class LexendRegularTextView extends VitafTextView {
    public LexendRegularTextView(Context context) {
        super(context);
    }
    public LexendRegularTextView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public LexendRegularTextView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
    @Override
    public void setTypeface(@Nullable Typeface tf) {
        super.setTypeface(tf);
    }
    @Override
    public void setTypeface(@Nullable Typeface tf, int style) {
        super.setTypeface(Typeface.createFromAsset(getContext().getAssets(),"fonts/Lexend-Regular.ttf"));
    }
}
